package com.huatai.bi.controller;

import com.huatai.bi.service.FunctionConfigService;
import com.huatai.common.api.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xuzy
 * @Version: 1.0
 */
@RestController
@Api(value = "函数",tags = "函数")
@RequestMapping("/functionConfig")
public class FunctionConfigController {
    @Autowired
    private FunctionConfigService service;

    @PostMapping("/list")
    @ApiOperation(value = "列表",notes = "列表")
    public R list(){
        return R.data(service.tree());
    }
}
